package com.myh.gulimall.member.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.myh.common.utils.PageUtils;
import com.myh.gulimall.member.entity.MemberEntity;
import com.myh.gulimall.member.exception.PhoneExistException;
import com.myh.gulimall.member.exception.UserNameExistException;
import com.myh.gulimall.member.to.MemberRegistTo;

import java.util.Map;

/**
 * 会员
 *
 * @author myh
 * @email 2722407149@qq.com
 * @date 2024-01-02 11:33:08
 */
public interface MemberService extends IService<MemberEntity> {

    PageUtils queryPage(Map<String, Object> params);

    void regist(MemberRegistTo memberRegistTo);

    void checkUserNameUnique(String userName) throws UserNameExistException;

    void checkPhoneUnique(String phone) throws PhoneExistException;
}

